<?php View::render('admin/layouts/meta');?>
<body>
<div class="page-container">
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th width="50">ID</th>
                <th width="">选项</th>
                <th width="100">投票数</th>
                <th width="150">添加时间</th>
            </tr>
            </thead>
            <tbody>
            <?php if ($list) {
                foreach ($list as $info) {
                    ?>
                    <tr class="text-c">
                        <td><?php echo $info['id']; ?></td>
                        <td><?php echo $info['vote_option']; ?></td>
                        <td><?php echo $info['vote_num']; ?></td>
                        <td><?php echo date("Y-m-d H:is",$info['add_time']); ?></td>
                    </tr>
                <?php }}?>
            </tbody>
        </table>

    </div>
</div>
</body>
<?php View::render('admin/layouts/footer');?>
<script type="text/javascript">
    $(function(){
        window.formAlert = function(title, url, w, h) {
            layer.open({
                type: 2,
                title: title,
                area: [w, h],
                content: url,
                end: function(){
                    window.location.href=location.href;
                }
            });
        }
    });
</script>
</html>